<?php
/**
 * Created by b17
 * 2/24/12 8:05 PM
 */

class IssueController extends G4T_Controller
{
    public function indexAction()
    {
        $pdfManager = new \Managers\PdfFile();
        $issues = $pdfManager->getList();
        $this->view->issues = $issues;
    }

    public function viewAction()
    {
        $this->_helper->layout->setLayout('issue-layout');
        $this->displayImages();

    }

    private function displayImages()
    {
        $pdfImageManager = new \Managers\PdfImage();
        $images = $pdfImageManager->getByFile($this->_getParam('id'));

        $this->view->images = $images;
    }
}
